package com.gitee.zhanyao.codebase.java.webservice.client.controller;

import com.gitee.zhanyao.codebase.java.webservice.server.service.HelloWS;
import com.gitee.zhanyao.codebase.java.webservice.server.service.HelloWSImplService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WebServiceController {

    @GetMapping("/sendHello")
    public String sendHello() {
        HelloWSImplService factory = new HelloWSImplService();
        HelloWS helloWS = factory.getHelloWSImplPort();
        return helloWS.sayHello("你好");
    }

}
